<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>修改用户权限</title>
<link rel="stylesheet" type="text/css" href="__CSS__/main.css">
</head>
<body class="clear">
<!-- 头部区域 -->
<div id="nav_div">
	<!-- logo -->
	<img src="__IMG__/people.png" id="people">
	<h2 class="mesH">论坛后台管理</h2>
	<div class="mesWec">
		<span>欢迎您：{:session('aNick')}</span>
	</div>
</div>
<!-- 导航栏区域 -->
<div id="mesNavBar">
	<ul>
		<li><a href="{:url('mesDeal')}">帖子管理</a></li>
		<li><a href="{:url('deal/userDeal')}">用户管理</a></li>
		<li><a href="{:url('secDeal')}">版块管理</a></li>
		<li><a href="">回收站管理</a></li>
		<li><a href="">广告管理</a></li>
		<li><a href="">轮播图管理</a></li>
		<li><a href="{:url('admin/apa')}">修改密码</a></li>
		<li><a href="{:url('admin/alogOut')}">注销</a></li>
		<li><a href="">论坛前台</a></li>
	</ul>
</div>
<div class="mesForm">
	<form action="{:url('deal/userPowerModi',['u_nick'=>$u_nick])}" method="post"  enctype="multipart/form-data">
		<table style="margin:20px 0;width: 100%;">
			<tr>
				<td class="mesTdf" style="font-weight:bold">用户名</td>
				<td class="mesTdf" style="font-weight:bold">{$u_nick}</td>
			</tr>
			<tr>
				<td class="mesTdf" style="font-weight:bold">权限</td>
				<td class="mesTdf" style="font-weight:bold">
					{compare name="$u_power" value='0' type=eq}
					<ul class="userul">
						<li>
							<input type="radio" name="power" checked value="0">
							<span style="color: red">不能登录</span><span>、</span><span style="color: red">不能评论</span>
						</li>
						<li>
							<input type="radio" name="power" value="1">
							<span style="color: green">正常登录</span><span>、</span><span style="color: red">不能评论</span>
						</li>
						<li>
							<input type="radio" name="power" value="2">
							<span style="color: green">正常登录、可以评论</span>
						</li>
					</ul>
					{else\}
					{compare name="$u_power" value='1' type=eq}
					<ul class="userul">
						<li>
							<input type="radio" name="power" value="0">
							<span style="color: red">不能登录</span><span>、</span><span style="color: red">不能评论</span>
						</li>
						<li>
							<input type="radio" name="power" checked value="1">
							<span style="color: green">正常登录</span><span>、</span><span style="color: red">不能评论</span>
						</li>
						<li>
							<input type="radio" name="power" value="2">
							<span style="color: green">正常登录、可以评论</span>
						</li>
					</ul>
					{else/}
					<ul class="userul">
						<li>
							<input type="radio" name="power" value="0">
							<span style="color: red">不能登录</span><span>、</span><span style="color: red">不能评论</span>
						</li>
						<li>
							<input type="radio" name="power" value="1">
							<span style="color: green">正常登录</span><span>、</span><span style="color: red">不能评论</span>
						</li>
						<li>
							<input type="radio" name="power" checked value="2">
							<span style="color: green">正常登录、可以评论</span>
						</li>
					</ul>
					{/compare}
					{/compare}
				</td>
				<tr>
					<td><input type="submit" value="确定修改" id="submit" style="margin: 10px 0 0 72%;"></td>
				</tr>
			</tr>
		</table>
	</form>
</div>
</body>
</html>